from google.appengine.ext import db


class Playlist(db.Model):
    title = db.StringProperty()
    user = db.UserProperty()
    sort = db.IntegerProperty()
    
class Song(db.Model):
    title = db.StringProperty()
    video = db.StringProperty()
    playlist = db.ReferenceProperty(Playlist, collection_name='songs') 
    date = db.DateTimeProperty(auto_now_add=True)
    sort = db.IntegerProperty()